package com.aipsi.cws.supplier.dvo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

import static com.aipsi.cws.supplier.constants.ControllerConstants.*;

/**
 * <p>
 *     通用的视图渲染对象
 * </p>
 * @author 大忽悠
 * @create 2022/4/24 8:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonVO {
    /**
     * 起始页
     */
    @Min(value = 0,message = "起始页大于等于0")
    private Integer startPage=START_PAGE;
    /**
     * 每一页记录数
     */
    @Min(value = 1,message = "每页条数大于1")
    private Integer pageSize=PAGE_SIZE;
    /**
     * 欠款金额起始范围
     */
    @Min(value = 0,message = "欠款金额范围起始值大于等于0")
    private Integer debtStart=DEBT_START;
    /**
     * 欠款金额结束范围
     */
    @Min(value = 0,message = "欠款金额范围结束值大于等于0")
    private Integer debtEnd=DEBT_END;
}
